import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '',
    redirect: './home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home/home')
  },
  {
    path: '/cart',
    name: 'cart',
    component: () => import('../views/cart/cart')
  },
  {
    path: '/category',
    name: 'category',
    component: () => import('../views/category/category')
  },
  {
    path: '/mine',
    name: 'About',
  
    component: () => import(/* webpackChunkName: "about" */ '../views/mine/mine')
  },
]

const router = new VueRouter({
  routes
})

export default router
